package com.biz.primus.model.order.vo;

import com.biz.primus.model.cart.enums.ShippingLevel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * 订单商品模型
 *
 * @author Tiger Feng
 * @date 2017年11月10日
 */
@NoArgsConstructor
@Data
@ApiModel("订单商品模型")
public class OrderProductVO implements Serializable {
    private static final long serialVersionUID = 1412428666722872880L;
    @ApiModelProperty("商品ID")
    private Long productId;
    @ApiModelProperty("商品编码")
    private String productCode;

    @ApiModelProperty(value = "商品名称")
    private String productName;
    @ApiModelProperty(value = "商品时效")
    private ShippingLevel shippingLevel;
    @ApiModelProperty(value = "Logo商品品牌")
    private String logo;
    @ApiModelProperty(value = "商品品牌ID")
    private Long brandId;
    @ApiModelProperty(value = "商品分类ID")
    private Long categoryId;
    @ApiModelProperty(value = "重量,克")
    private Integer weight;

    @ApiModelProperty("商品数量")
    private Integer quantity;

    public OrderProductVO(Long productId) {
        this.productId = productId;
    }

    public OrderProductVO(Long productId, String productCode) {
        this.productId = productId;
        this.productCode = productCode;
    }
}
